<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JavaScript alert</title>
</head>
<body>

<input type="button" value="浅蓝色" onclick="color('lightblue')">
<input type="button" value="红色" onclick="color('red')">
<input type="button" value="粉色" onclick="color('pink')">
<input type="button" value="浅绿色" onclick="color('lightgreen')">

<input type="color" onchange="diy(this)">
<script src="js/script.js"></script>
</body>
</html>